<script setup>
  import {
    Document,
    Menu as IconMenu,
    Location,
    Setting,
  } from '@element-plus/icons-vue'

  const handleOpen = (key, keyPath) => {
    console.log(key, keyPath)
  }
  const handleClose = (key, keyPath) => {
    console.log(key, keyPath)
  }
</script>

<template>
  <el-menu
  style="max-width: 280px;"
  background-color="#303133"
  text-color="#fff"
  @open="handleOpen"
  @close="handleClose">
    <el-sub-menu index="1">
      <template #title>
        <span>操作</span>
      </template>
      <el-menu-item index="4">
        <span>删除</span>
      </el-menu-item>
      <el-sub-menu index="6">
        <template #title>
          <span>新增</span>
        </template>
        <el-menu-item index="7">
          <span>头增</span>
        </el-menu-item>
        <el-menu-item index="8">
          <span>尾增</span>
        </el-menu-item>
      </el-sub-menu>
    </el-sub-menu>
    <el-menu-item index="2">
      <span>说明</span>
    </el-menu-item>
    <el-menu-item index="3">
      <span>导航</span>
    </el-menu-item>
  </el-menu>
</template>


<style scoped>

</style>